$(function() {
				var deptId;
				var serId;
				v_list = new Vue({
					el: '#advice-index',
					data: {
						dto: {
							userId: '49282',
							mobile: '13862039987',
							address:'苏州市高大上'
						},
						deptId: '',
						serId: '',
						theme: '',
						content: '',
						deptList: [],
						serList: [],
						itemsList:[]
					},
					methods: {
						save: function() {
							if(this.theme == '') {
								showRedMsg("message", "请填写建议主题!");
								return false;
							} else if(this.theme.trim() == '') {
								showRedMsg("message", "请填写建议主题!");
								return false;
							}
							if(this.content == '') {
								showRedMsg("message", "请填写建议内容!");
								return false;
							} else if(this.content.trim() == '') {
								showRedMsg("message", "请填写建议内容!");
								return false;
							}
							console.log("userId:"+this.dto.userId+"deptId:"+this.deptId+"serId:"+this.serId+"theme:"+this.theme+"content:"+this.content)
							this.$http.post(complain.saveComplain, {
								type: "3",
								userId: this.dto.userId,
								deptId: this.deptId,
								serId: this.serId,
								theme: this.theme,
								content: this.content
							}, {
								emulateJSON: true
							}).then(function(res) {
								//接收后端传来的数据
								doMask()
								console.log(toJson(res.data));
								if(res.data.success) {
									unMask();
									window.location.href = 'advice-result.html';
								} else {
									unMask();
									showRedMsg("message", "保存出错");
								}
							}, function(res) {
								unMask();
								showRedMsg("message", "保存出错");
								console.log("保存出错:" + toJson(res));
							});
						},
						//常用

						//常用结束
						
					},
					ready: function() {
						//初始化获得总页面数和列表数据
						//$("#message-index").load('../s.html');
//						$("#left").load('');
 						$("#left").load("../../page/common/left.html")
					}
				});
			})